
import { defineStore } from 'pinia'

export default defineStore('user', {
    state: () => {
        return {
            isLogin: false,
        }
    },
    getters: {
        getIsLogin(): boolean {
            if(window.sessionStorage.getItem('token')) {
                this.isLogin = true
                return this.isLogin
            }
            this.isLogin = false
            return this.isLogin
        }
    },
    actions: {
    }
})
